<?php if($articles): ?>
	<div id="content-page" class="content group">
				            <div class="hentry group">
				                <h2>Добавленные статьи</h2>
				                <div class="short-table white">
				                    <table style="width: 100%" cellspacing="0" cellpadding="0">
				                        <thead>
				                            <tr>
				                                <th class="align-left">ID</th>
				                                <th>Заголовок</th>
				                                <th>Текст</th>
				                                <th>Изображение</th>
				                                <th>Категория</th>
				                                <th>Псевдоним</th>
				                                <th>Дествие</th>
				                            </tr>
				                        </thead>
				                        <tbody>
				                            
											<?php foreach($articles as $article): ?>
											<tr>
				                                <td class="align-left"><?php echo e($article->id); ?></td>
				                                <td class="align-left"><?php echo Html::link(route('admin.articles.edit',['articles'=>$article->alias]),$article->title); ?></td>
				                                <td class="align-left"><?php echo e(str_limit($article->text,200)); ?></td>
				                                <td>
													<?php if(isset($article->img->mini)): ?>
													<?php echo Html::image(asset(env('THEME')).'/images/articles/'.$article->img->mini); ?>

													<?php endif; ?>
												</td>
				                                <td><?php echo e($article->category->title); ?></td>
				                                <td><?php echo e($article->alias); ?></td>
				                                <td>
												<?php echo Form::open(['url' => route('admin.articles.destroy',['articles'=>$article->alias]),'class'=>'form-horizontal','method'=>'POST']); ?>

												    <?php echo e(method_field('DELETE')); ?>

												    <?php echo Form::button('Удалить', ['class' => 'btn btn-french-5','type'=>'submit']); ?>

												<?php echo Form::close(); ?>

												</td>
											 </tr>	
											<?php endforeach; ?>	
				                           
				                        </tbody>
				                    </table>
				                </div>
								
								<?php echo HTML::link(route('admin.articles.create'),'Добавить  материал',['class' => 'btn btn-the-salmon-dance-3']); ?>

                                
				                
				            </div>
				            <!-- START COMMENTS -->
				            <div id="comments">
				            </div>
				            <!-- END COMMENTS -->
				        </div>
<?php endif; ?>